run:boss.o main.o manager.o worker.o workermanage.o 
	g++ boss.o main.o manager.o worker.o workermanage.o -o run

boss.o:boss.cpp
	g++ -c boss.cpp -o boss.o

manager.o:manager.cpp
	g++ -c manager.cpp -o manager.o

worker.o:worker.cpp
	g++ -c worker.cpp -o worker.o

workermanger.o:workermanage.cpp
	g++ -c workermanage.cpp -o workermanage.o

main.o:main.cpp
	g++ -c main.cpp -o main.o

.PHONY:clean
clean:
	rm *.o run